home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: C++ performance
- Date: 11 Jan 1996 21:25:55 GMT
- Organization: Pipeline USA
- Message-ID: <4d3v93$rf9@news1.usa.pipeline.com>
- NNTP-Posting-Host: pipe10.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline USA v3.3.0
-
- On Jan 11, 1996 18:25:17 in article <C++ performance>,
- 'christ@lexis-nexis.com (Chris Tilton)' wrote:
-
-
- >What (if any) rules of thumb/tricks of the trade exist
- >for enhancing the performance of a program? I discovered
- >how to make a small function 'inline' and was curious
- >of what else exists to enhance execution speed.
- >
- The best rule of thumb is to analyze your algorithms and improve
- them to the best of your ability. Use a profiler to help determine
- where your program spends most of its time and concentrate on
- speeding up those portions. Inlining and other 'tricks' applied
- everywhere without discretion typically produce only minor gains.
-
- --
-
- Pete
-